import { ajaxPostBack, ajaxPost } from '@/utils/data/request'

// 列表
export function list(params: any) {
    return ajaxPostBack("kq-door/door-list", params, { cookies: ['yard_sn'] })
}

// 创建
export function add(params: any) {
    return ajaxPost("kq-door/door-create", params, { successMessage: true, cookies: ['yard_sn'] })
}

// 删除
export function del({ door_sn }: any) {
    return ajaxPost("kq-door/door-delete", { door_sn }, { successMessage: true, cookies: ['yard_sn'] })
}
